home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
batutl2.zip
/
CHKDATE.DOC
< prev
next >
Wrap
Text File
|
1985-07-03
|
821b
|
22 lines
CHKDATE.COM - by Guy C. Gordon
The purpose of CHKDATE is to encourage other people to enter the
current date when they boot your computer. Unless you have a battery
backed up clock/calendar, DOS thinks the date is 1/1/80 when you boot,
and puts that date on all new files. This makes it impossible to tell
which files are the newest.
CHKDATE is a program that sets the DOS ERRORLEVEL if the date is
1/1/80. It may be used in an AUTOEXEC.BAT file to insure that the
current date is entered at the DATE command. Using the batch commands
below, processing will loop back to the DATE command if the user does
not enter a date. Of course, they could CTRL-BREAK out of the loop,
but don't tell them that.
:GETDATE
DATE
CHKDATE
IF ERRORLEVEL 1 GOTO GETDATE
TIME